@extends('layouts.app')

@section('content')
    <div class="xue-mall-courseCard-wrap" style="margin:20px 0;">
        <div class="container">
            <div class="am-breadcrumb-wrap">
                <ol class="am-breadcrumb am-breadcrumb-slash am-fl am-margin-bottom-0">
                    <li><a href="/">首页</a></li>
                    <li><a href="javascript:;">{{ $cate_info->cate_name }}</a></li>
                </ol>
            </div>
            <div class="xue-mall-courseCard-list zhuanti-course-box">
                <div class="xue-block-grid live-course-box">
                    <ul class="am-avg-sm-3">
                        @foreach ($video_list as $one_video)
                            <li class="course-list-item">
                                <a href="/video/{{ $one_video['id'] }}">
                                    <div class="free-card">
                                        <div class="free-card-top">
                                            <img src="https://{{ env('bucket').'.'.env('endpoint').'/'.$one_video['picture'] }}">
                                        </div>
                                        <div class="free-card-center">
                                            <p class="xue-card-title am-text-lg">
                                                <span class="course-title" title="">{{ $one_video['title'] }}</span>
                                            </p>
                                        </div>
                                        <div class="free-card-bottom">
                                    <span class="am-text-danger free-card-price-info">
                                        <strong class="xue-course-price">¥{{ $one_video['price'] }}</strong>
                                    </span>
                                        </div>
                                    </div>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                </div>
            </div>
            <div class="page">
                {{ $video_list->links() }}
            </div>
        </div>
    </div>
@endsection